#ifndef IGSLIB_BURAM_TEST_H
#define IGSLIB_BURAM_TEST_H

#include <cstdio>
#include <set>
#include <string>
#include <vector>
#include "igslib_iburam.h"
#include "buram.h"

namespace igslib 
{
	

    #define FileBuRAMSize 64*1024
   
    class FileBuRAM:public CBuRAM
    {
        struct BuRAMBlock
        {
            void* addr;
            int size;
        };
        FILE* fp;
        int offset;
        unsigned char ram[FileBuRAMSize];
        std::vector<BuRAMBlock> blocks;
        public:
            FileBuRAM(/*const std::string&*/);
            int GetSize() { return FileBuRAMSize; }
            void Flush();
            void* BindBlock(int);
            ~FileBuRAM();
    };

   
};

#endif
